import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'//图标
import router from './router/index'
import { createPinia } from 'pinia'
// import './style.css'
import myconfirm from './utils/myconfirm'
import App from './App.vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//实例化pinia
const pinia = createPinia()

const app = createApp(App)
app.use(router).use(ElementPlus, {
  locale: zhCn,
}).use(pinia).mount("#app")
// createApp(App).mount('#app')



for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}


//全局挂载
app.config.globalProperties.$myconfirm = myconfirm;
